package com.ruoyi.project.seeDoctor.mapper;

import com.ruoyi.project.seeDoctor.domain.MedPati;
import com.ruoyi.project.seeDoctor.domain.SysDepts;
import com.ruoyi.project.seeDoctor.domain.SysRegistrationCost;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.boot.SpringBootConfiguration;

import java.util.List;

public interface IRegisterMapper {
    //查询患者信息
    List<MedPati> selIRegisterList(MedPati medPati);
    //根据身份证号查询患者信息
    List<MedPati> selIRegisterByCode(@Param("pati_code") String pati_code);

    //添加患者信息
    @Insert("insert into med_pati value(default,pati_name,pati_code,pati_phone,pati_birthday,pati_age,pati_sex,pati_address,default,default)")
    int insRegisterMapperInfo(MedPati medPati);
    //查询挂号信息
    @Select("select * from sys_registration_cost")
    List<SysRegistrationCost> selSysRegistrationCostInfo();
    //查询挂号科室信息
    List<SysDepts> selSysDeptsMapperInfo(@Param("depts_name") String depts_name);

    //添加患者信息

    //添加挂号信息



}
